def convert_gui(hex_data):
    """
    转换GUI数据的核心逻辑
    """
    hex_list = hex_data.split()
    formatted_data = [f"0x{value}" for value in hex_list]
    lines = [", ".join(formatted_data[i:i+8]) + ("," if i+8 < len(formatted_data) else "") for i in range(0, len(formatted_data), 8)]
    return "{\n" + "\n".join(lines) + "\n};"